﻿define(["service/service", "service/httpService"], function (service) {
    service.factory("transferService", function (httpService) {
        var methods = {
            gets: function (params) {
                return httpService.get("/admin/transfer/gets", params);
            },
            get: function(params) {
                return httpService.get("/admin/transfer/get", params);
            },
            apply_batch: function (params) {
                return httpService.post("/admin/transfer/applyBatch", params);
            },
            getBatchs: function (params) {
                return httpService.get("/admin/transfer/getBatchs", params);
            },
            get_balance: function (params) {
                return httpService.post("/admin/transfer/balance", params);
            },
            batch_notify: function (params) {
                return httpService.post("/admin/transfer/batchNotify", params);
            },
            batch_back: function (params) {
                return httpService.post("/admin/transfer/batchBack", params);
            },
            payoff:function(params){
                return httpService.post("/admin/transfer/payoff", params);
            },
            transfer_first:function(params){
                return httpService.post("/admin/transfer/transfer_first", params);
            },
            cancel:function(params){
                return httpService.post("/admin/transfer/cancel", params);
            }
        }
        return methods;
    });
});